//package cn.jjxx.modules.resources.controller;
//
//import cn.jjxx.core.model.AjaxJson;
//import cn.jjxx.core.query.wrapper.EntityWrapper;
//import cn.jjxx.modules.resources.entity.HrAttendance;
//import cn.jjxx.modules.resources.entity.HrCategory;
//import cn.jjxx.modules.resources.entity.HrOverview;
//import cn.jjxx.modules.resources.service.IHrAttendanceService;
//import cn.jjxx.modules.resources.service.IHrCategoryService;
//import cn.jjxx.modules.resources.service.IHrOverviewService;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Controller;
//import org.springframework.web.bind.annotation.RequestMapping;
//import org.springframework.web.bind.annotation.RequestMethod;
//import org.springframework.web.bind.annotation.RestController;
//
//import java.util.List;
//
//@RestController
//@RequestMapping("${admin.url.prefix}/resources/API")
//public class APIController {
//
//    @Autowired
//    protected IHrOverviewService overviewService;
//    @Autowired
//    protected IHrCategoryService categoryService;
//    @Autowired
//    protected IHrAttendanceService attendanceService;
//
//
//
//
//    @RequestMapping(value = "overview",method = RequestMethod.GET)
//    public AjaxJson getOverview(){
//        AjaxJson json = new AjaxJson();
//        HrOverview overview =  overviewService.selectOne(null);
//        json.setData(overview);
//        json.success("success");
//        return json;
//    }
//
//
//    @RequestMapping(value = "category",method = RequestMethod.GET)
//    public AjaxJson getCategoryStatistics(){
//        AjaxJson json = new AjaxJson();
//        HrCategory category = categoryService.selectOne(null);
//        json.setData(category);
//        json.success("success");
//        return json;
//    }
//
//    @RequestMapping(value = "attendance",method = RequestMethod.GET)
//    public AjaxJson getAttendanceInfo(){
//        AjaxJson json = new AjaxJson();
//        EntityWrapper wrapper = new EntityWrapper();
//        wrapper.orderBy("code");
//        List<HrAttendance> list = attendanceService.selectList(wrapper);
//        json.setData(list);
//        json.success("success");
//        return json;
//    }
//
//
//}
